package com.example.service.impl;

import com.example.service.ItestService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by lipain on 2017/5/5.
 */
@Service
public class TestServiceImpl implements ItestService{

    @Value("#{properties2[server_host]}")
    String host;

    @Value("${server_host}")
    String host1;

    @Override
    public void test() {
        System.err.println(host);
        System.err.println(host1);
    }
}
